package observer;

public class Admin implements ProductObserver{
    @Override
    public void onPublished(Product p) {
        System.out.println("Admin: " + p.getName() + " is published.");
    }

    @Override
    public void onPriceChanged(Product p){
        System.out.println("Admin: " + p.getName() + " is changed to " + p.getPrice());
    }
}
